package com.pojo.req.im;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.pojo.parent.CustomLocalDateDeserializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 聊天记录请求
 * @author Huawei
 * @date 2023-10-23 14:21
 */
@Data
public class ImRecordResp {

    /**
     *  聊天用户内容
     */
    private  String body;

    /**
     *  当前接收时间
     */
    @JsonSerialize(using = CustomLocalDateDeserializer.class)
    private LocalDateTime requestDate;

    /**
     * 是否已读
     */
    private String isRead;

    /**
     * 发送人id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long requestId;

}
